package com.jiuqi.irs.generator.dao.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="TB_DETAILPROOF"
 *     
*/
public class TbDetailproof implements Serializable {

    /** identifier field */
    private String dtGuid;

    /** persistent field */
    private String proofId;

    /** persistent field */
    private String itemCode;

    /** nullable persistent field */
    private String proofCode;

    /** nullable persistent field */
    private String nameNumber;

    /** nullable persistent field */
    private String itemName;

    /** nullable persistent field */
    private String measureUnit;

    /** nullable persistent field */
    private BigDecimal quantity;

    /** nullable persistent field */
    private BigDecimal money;

    /** nullable persistent field */
    private String tranFalg;

    /** nullable persistent field */
    private String reserved1;

    /** nullable persistent field */
    private String reserved2;

    /** nullable persistent field */
    private String reserved3;

    /** full constructor */
    public TbDetailproof(String dtGuid, String proofId, String itemCode, String proofCode, String nameNumber, String itemName, String measureUnit, BigDecimal quantity, BigDecimal money, String tranFalg, String reserved1, String reserved2, String reserved3) {
        this.dtGuid = dtGuid;
        this.proofId = proofId;
        this.itemCode = itemCode;
        this.proofCode = proofCode;
        this.nameNumber = nameNumber;
        this.itemName = itemName;
        this.measureUnit = measureUnit;
        this.quantity = quantity;
        this.money = money;
        this.tranFalg = tranFalg;
        this.reserved1 = reserved1;
        this.reserved2 = reserved2;
        this.reserved3 = reserved3;
    }

    /** default constructor */
    public TbDetailproof() {
    }

    /** minimal constructor */
    public TbDetailproof(String dtGuid, String proofId, String itemCode) {
        this.dtGuid = dtGuid;
        this.proofId = proofId;
        this.itemCode = itemCode;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="DT_GUID"
     *         
     */
    public String getDtGuid() {
        return this.dtGuid;
    }

    public void setDtGuid(String dtGuid) {
        this.dtGuid = dtGuid;
    }

    /** 
     *            @hibernate.property
     *             column="PROOF_ID"
     *             length="37"
     *             not-null="true"
     *         
     */
    public String getProofId() {
        return this.proofId;
    }

    public void setProofId(String proofId) {
        this.proofId = proofId;
    }

    /** 
     *            @hibernate.property
     *             column="ITEM_CODE"
     *             length="42"
     *             not-null="true"
     *         
     */
    public String getItemCode() {
        return this.itemCode;
    }

    public void setItemCode(String itemCode) {
        this.itemCode = itemCode;
    }

    /** 
     *            @hibernate.property
     *             column="PROOF_CODE"
     *             length="20"
     *         
     */
    public String getProofCode() {
        return this.proofCode;
    }

    public void setProofCode(String proofCode) {
        this.proofCode = proofCode;
    }

    /** 
     *            @hibernate.property
     *             column="NAME_NUMBER"
     *             length="5"
     *         
     */
    public String getNameNumber() {
        return this.nameNumber;
    }

    public void setNameNumber(String nameNumber) {
        this.nameNumber = nameNumber;
    }

    /** 
     *            @hibernate.property
     *             column="ITEM_NAME"
     *             length="100"
     *         
     */
    public String getItemName() {
        return this.itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    /** 
     *            @hibernate.property
     *             column="MEASURE_UNIT"
     *             length="20"
     *         
     */
    public String getMeasureUnit() {
        return this.measureUnit;
    }

    public void setMeasureUnit(String measureUnit) {
        this.measureUnit = measureUnit;
    }

    /** 
     *            @hibernate.property
     *             column="QUANTITY"
     *             length="20"
     *         
     */
    public BigDecimal getQuantity() {
        return this.quantity;
    }

    public void setQuantity(BigDecimal quantity) {
        this.quantity = quantity;
    }

    /** 
     *            @hibernate.property
     *             column="MONEY"
     *             length="20"
     *         
     */
    public BigDecimal getMoney() {
        return this.money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    /** 
     *            @hibernate.property
     *             column="TRAN_FALG"
     *             length="3"
     *         
     */
    public String getTranFalg() {
        return this.tranFalg;
    }

    public void setTranFalg(String tranFalg) {
        this.tranFalg = tranFalg;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED1"
     *             length="150"
     *         
     */
    public String getReserved1() {
        return this.reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED2"
     *             length="100"
     *         
     */
    public String getReserved2() {
        return this.reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED3"
     *             length="150"
     *         
     */
    public String getReserved3() {
        return this.reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("dtGuid", getDtGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof TbDetailproof) ) return false;
        TbDetailproof castOther = (TbDetailproof) other;
        return new EqualsBuilder()
            .append(this.getDtGuid(), castOther.getDtGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getDtGuid())
            .toHashCode();
    }

}
